package com.telecom;

import com.telecom.config.SpringConfig;
import com.telecom.entity.Teacher;
import com.zaxxer.hikari.HikariDataSource;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * Hello world!
 */
public class App {
    public static void main(String[] args) {
        HikariDataSource dataSource;
        ApplicationContext context=new AnnotationConfigApplicationContext(SpringConfig.class);
        Teacher teacher = context.getBean(Teacher.class);
        teacher.sign();
    }
}
